﻿using Dapper.FluentMap.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Real.Entidad
{
    public class Categoria
    {
        public int id { get; set; }
        public string nombre { get; set; }

    }

    public class CategoriaMap : EntityMap<Categoria>
    {
        public CategoriaMap()
        {
            Map(x => x.id).ToColumn("catid", caseSensitive: false);
            Map(x => x.nombre).ToColumn("catnombre", caseSensitive: false);
        }
    }
}
